package com.ssoserver.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDatabase extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        String dataSource = DatabaseHolder.getDataSource();
        return dataSource;
    }
}
